package com.edu.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.edu.entity.Locations;
import com.edu.entity.School;
import com.edu.mapper.LocationsMapper;
import com.edu.mapper.SchoolMapper;
import com.edu.service.LocationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.List;

/**
 * @program: graduate
 * @description:
 * @author: K.faWu
 * @create: 2021-05-31 21:38
 **/

@Service
public class LocationsServiceImpl extends ServiceImpl<LocationsMapper, Locations> implements LocationsService  {
    @Autowired
    private LocationsMapper locationsMapper;


    @Override
    public List<Locations> getByPid(Long pid) {
        QueryWrapper<Locations> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("pid", pid);
        List<Locations> list = locationsMapper.selectList(queryWrapper);
        return list;
    }
}
